//
//  SystemDefine.h
//  Codingke2016
//
//  Created by xujiangtao on 16/5/27.
//  Copyright © 2016年 xujiangtao. All rights reserved.
//

#ifndef SystemDefine_h
#define SystemDefine_h

//常用接口


//常用函数
#define RGBACOLOR(r,g,b,a) [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:(a)]
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#define COLOR_NAV_ALPHA(a)  RGBACOLOR(70, 87, 120, a)

#define MAINGREENCOLOR [UIColor colorWithHexString:@"#00af56"]

#define     SCREEN_WIDTH    [[UIScreen mainScreen] bounds].size.width
#define     SCREEN_HEIGHT   [[UIScreen mainScreen] bounds].size.height

#define      NAV_HEIGHT         ([UIApplication sharedApplication].statusBarFrame.size.height+self.navigationController.navigationBar.frame.size.height)

#define kRandomColor  [UIColor colorWithRed:arc4random() % 256 / 256.0 green:arc4random() % 256 / 256.0 blue:arc4random() % 256 / 256.0 alpha:1.0];
#define kFontSize [UIFont systemFontOfSize:arc4random() % 5 + 15]

//常用尺寸
#define margin_left_right_space   15


#endif /* SystemDefine_h */
